Skip to content

Addons: return ethicalads data on /_/addons/ endpoint #10534

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 12, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Jul 12, 2023

This data is consumed by the sponsorship addons to display an ad using EthicalAds.

Related readthedocs/addons#67
Requires: https://github.com/readthedocs/readthedocs-ext/pull/546

This data is consumed by the sponsorship addons to display an ad using
EthicalAds.

Related readthedocs/addons#67
@humitos humitos requested a review from a team as a code owner July 12, 2023 14:05
@humitos humitos requested a review from ericholscher July 12, 2023 14:05
humitos added 2 commits July 12, 2023 17:34
`prospector` doesn't have access to this repository because it's private. So, we
are skipping the check for this line.
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simple enough 👍

If this is adding queries to this endpoint, we should probably be more defensive with when we actually perform those queries, but I think it's fine for now.

@humitos
Copy link
Member Author

humitos commented Jul 12, 2023

Yes, this adds a couple of queries. I opened #10536 to track and discuss the "cacheability" of this endpoint 😄

@humitos humitos merged commit 32043d2 into main Jul 12, 2023
@humitos humitos deleted the humitos/ad-addons-api-response branch July 12, 2023 17:10
humitos added a commit to readthedocs/addons that referenced this pull request Jul 13, 2023
Show an ad using EthicalAd as a backend and the data coming from
`/_/readthedocs-config/` inside `addons.ethicalads`.


![Peek 2023-07-12
19-06](https://github.com/readthedocs/addons/assets/244656/00e4b045-a2ce-4f60-92c8-c8ba7337318d)


Closes #67
Requires: readthedocs/readthedocs.org#10534
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants